const Util      = require('./Utils');
const HappyPack = require('happypack');


module.exports = {
    loaders : {
        jsloader : {
            test: /\.jsx?$/,
            loaders: [ 'happypack/loader?id=js'],
            exclude: /node_modules/,
            include : [Util.resolve('../src')],
        },
    },

    plugins : [
        new HappyPack({
            id: 'js',
            threads: 4,
            loaders: [ 'babel-loader' ]
        })
    ]
}